﻿<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf8" />
    <title>网页播放器</title>
    <style type="text/css">
        body
        {
            margin: 0;
            padding: 2px;
            overflow: hidden;
        }
    </style>
    <script src="/Scripts/Common/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="audio-player.js"></script>
    <script type="text/javascript">
        AudioPlayer.setup("player.swf", {
            width: 200,
            loop: 'yes',
            autostart: "yes"
        });
        $(function () {
            var songList = "";
            $.getJSON("/website/Advertise/slide.aspx", { aid: 5, rnd: Math.random() }, function (data) {
                $.each(data, function (i, n) {
                    songList += "," + n.ImageName;
                });
                AudioPlayer.embed("audioplayer_1", { soundFile: songList.substring(1, songList.length) });
            });
        });
    </script>
</head>
<body>
    <p id="audioplayer_1">
    </p>
</body>
</html>
